package com.ticket.dao.impl;

import com.ticket.dao.CinemaDao;
import com.ticket.entity.Cinema;
import com.ticket.util.MybatisUtil;
import com.ticket.util.Page;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * @author XuGuoZhi
 * @version 8.0
 * @description TODO 影院数据访问层实现类
 * @date 2023/10/7
 */
public class CinemaDaoImpl{
    SqlSession sqlSession;

    public int selPageCinemaCount(String cinemaName) {
        return 0;
    }
    /**
     * @description TODO 后端影院总体分页查询
     * @author XuGuoZhi
     * @date 2023/10/7 10:41
      * @param
     * @return org.t69.auction.Page<com.ticket.entity.Cinema>
     */
    public List<Cinema> selPageCinema(Page page,String name) {
//        String findDataSql="select cinema_id,cinema_name,cinema_address,cinema_header,cinema_phone,cinema_time,cinema_score,cinema_status,b.business_id,responsiblePerson,service_id from cinema" +
//                "    inner join business b on cinema.business_id = b.business_id" +
//                "    inner join cinema_service cs on cinema.service_id = cs.cinema_service_id ";
//        String findCountSql="select count(1) from cinema ";
//        Page<Cinema> cinemaPage=new Page<>(page.getPageSize(), page.getCurrPageNo());
//        try {
//           // cinemaPage=dao.exeQueryPage(Cinema.class,cinemaPage,findCountSql,findDataSql,new Cinema());
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
        return null;
    }
}
